package com.hjy;

import com.hjy.api.HelloObject;
import com.hjy.api.HelloService;
import com.hjy.api.RpcApi;
import com.hjy.common.utils.RpcUtils;
import com.hjy.core.transport.RpcClient;
import com.hjy.core.transport.RpcClientProxy;
import com.hjy.core.transport.netty.client.NettyClient;

public class NacosTest {
    public static void main(String[] args) {
//        RpcClient client = new NettyClient();
//        RpcClientProxy proxy = new RpcClientProxy(client);
//        RpcApi proxy1 = proxy.getProxy(RpcApi.class);

        RpcApi api = RpcUtils.getProxyObjetNetty(RpcApi.class);
        String res = api.helloRpc("biii");
        System.out.println(res);
    }
}
